package xpn.business.fund_return.entity.decision_stub;

import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xpn.platform.common.repository.XpnRepositoryController;

import javax.annotation.Resource;

@RestController
@RepositoryRestController
@RequestMapping("decisionStub")
public class DecisionStubController extends XpnRepositoryController<DecisionStub, Long> {

    @Resource
    private DecisionStubService decisionStubService;

    @PostMapping("")
    public DecisionStub saveDecisionStub(@RequestBody DecisionStub decisionStub) {
        return decisionStubService.save(decisionStub);
    }
}
